<?php
return array(
	'defaultScope' => array(
		'condition' => "t.object_type = 'Receivable'",
	),
	'attributeLabels' => array(
		'receiveable' => '应收金额',
		'money' => '已收金额'
	),
	
	'rules' => array(
		array('money','coms.validators.finance.MoneyValidator','compareAttribute'=>'receiveable'),
	),
	
	'behaviors' => array(
		'moneyState' => array(
			'class' => 'application.behaviors.MoneyStateBehavior',
			'attribute' => 'receiveable'
		),
	),
	
	'_import' => array(
		array('*', 'models.Receivables//*'),
	),
);